
<!DOCTYPE html>
<html>
	<head>
		<meta charset="UTF-8">
		<title>web端的跨域</title>
		<script src="js/mui.min.js"></script>
		<script src="js/mui.jsonp.js"></script>
		<script src="http://libs.baidu.com/jquery/2.1.4/jquery.min.js"></script>
		<script>
			var url3 = "https://api.douban.com/v2/book/1220562";
			var url = 'http://encounter.christmas023.space/json.php?name=mavis&age=18';
			$.ajax({
					url: url,
					dataType: 'jsonp',
					processData: false,
					type: 'get',
					success: function(data) {
						alert(1111);
						alert(data);

					},
					error: function(XMLHttpRequest, textStatus, errorThrown) {
						alert(XMLHttpRequest.status);
						alert(XMLHttpRequest.readyState);
						alert(textStatus);
					}
				});
		</script>
	</head>
	<body>
	</body>
</html>
